﻿<%@ Page Title="" Language="C#" MasterPageFile="~/admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="UserList.aspx.cs" Inherits="HTTT.admin.UserList" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeaderContent" runat="server">
    <title>Video List</title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="toolbar-box">
        <div class="m">
            <div id="toolbar" class="toolbar-list">
                <ul>
                    <li id="toolbar-new" class="button">
                        <asp:LinkButton ID="btnAdd" runat="server" OnClick="btnAdd_Click">
                        <span class="icon-32-new"></span>Thêm </asp:LinkButton></li>
                    <li id="toolbar-edit" class="button">
                        <asp:LinkButton ID="btnEdit" runat="server" OnClick="btnEdit_Click">
                       <span class="icon-32-edit"></span>Sửa </asp:LinkButton></li>
                    <li class="divider"></li>
                    <li id="toolbar-publish" class="button">
                        <asp:LinkButton ID="btnPublish" runat="server" OnClick="btnReset_Click">
                        <span class="icon-32-revert"></span>Đặt lại mật khẩu</asp:LinkButton></li>
                    <li id="toolbar-unpublish" class="button">
                        <asp:LinkButton ID="btnDisable" runat="server" OnClick="btnDisable_Click">
                        <span class="icon-32-disable"></span>Khóa </asp:LinkButton></li>
                    <li id="toolbar-enable" class="button">
                        <asp:LinkButton ID="btnEnable" runat="server" OnClick="btnEnable_Click">
                        <span class="icon-32-enable"></span>Mở khóa </asp:LinkButton></li>
                    <li class="divider"></li>
                    <li id="toolbar-delete" class="button">
                        <asp:LinkButton ID="btnDelete" runat="server" OnClick="btnDelete_Click">
                       <span class="icon-32-delete"></span>Delete </asp:LinkButton></li>
                    <li class="divider"></li>
                </ul>
                <div class="clr">
                </div>
            </div>
            <div class="pagetitle icon-48-menumgr">
                <h2>
                    Quản lý người dùng: Danh sách người dùng</h2>
            </div>
        </div>
    </div>
    <div id="element-box">
        <div class="m">
            <fieldset id="filter-bar">
                <div class="filter-search fltlft">
                    <label for="filter_search" class="filter-search-lbl">
                        Chọn:</label>
                    <asp:DropDownList ID="ddlOU" runat="server">
                    </asp:DropDownList>
                    <asp:TextBox ID="txtKeyword" runat="server"></asp:TextBox>
                    <asp:Button ID="btnSearch" runat="server" Text="Lọc" OnClick="btnSearch_Click" />
                    <asp:Label ID="lblMsg" runat="server" ForeColor="Red" Text=""></asp:Label>
                </div>
                <div class="filter-select fltrt">
                </div>
            </fieldset>
            <div class="clr"></div>
            <table class="adminlist">
                <thead>
                    <tr>
                        <th width="1%">
                            <input type="checkbox" onclick="Joomla.checkAll(this)" title="Check All" value=""
                                name="checkall-toggle" />
                        </th>
                        <th width="10%">
                            <a title="Click to sort by this column" onclick="" href="#">Tên đăng nhập</a>
                        </th>
                        <th width="10%" class="title">
                            <a title="Click to sort by this column" onclick="" href="#">Họ và tên</a>
                        </th>
                        <th>
                            <a title="Click to sort by this column" onclick="" href="#">Kích hoạt</a>
                        </th>
                        <th>
                            <a title="Click to sort by this column" onclick="" href="#">Chức vụ</a>
                        </th>
                        <th>
                            <a title="Click to sort by this column" onclick="" href="#">Đơn vị</a>
                        </th>
                    </tr>
                </thead>
                <tfoot>
                    <tr>
                        <td colspan="5">
                            <div class="container">
                                <div class="pagination">
                                    <div class="limit">
                                        Display #<select onchange="Joomla.submitform();" size="1" class="inputbox" name="limit"
                                            id="limit">
                                            <option value="5">5</option>
                                            <option value="10">10</option>
                                            <option value="15">15</option>
                                            <option selected="selected" value="20">20</option>
                                            <option value="25">25</option>
                                            <option value="30">30</option>
                                            <option value="50">50</option>
                                            <option value="100">100</option>
                                            <option value="0">All</option>
                                        </select>
                                    </div>
                                    <div class="limit">
                                    </div>
                                    <input type="hidden" value="0" name="limitstart" />
                                </div>
                            </div>
                        </td>
                    </tr>
                </tfoot>
                <tbody>
                    <asp:Repeater ID="rptData" runat="server">
                        <ItemTemplate>
                            <tr class="row<%# Container.ItemIndex%2 %>">
                                <td class="center">
                                    <asp:CheckBox runat="server" ID="chkItem" value='<%#Eval("sAMAccountName") %>' />
                                </td>
                                <td>
                                    <a href='EditUser.aspx?ID=<%#Eval("sAMAccountName") %>'>
                                        <%#Eval("sAMAccountName") %></a>
                                </td>
                                <td>
                                    <a href='EditUser.aspx?ID=<%#Eval("sAMAccountName") %>'>
                                        <%#Eval("displayName")%>
                                    </a>
                                </td>
                                <td class="center">
                                    <a class="jgrid" title="Unpublish the menu item alias" href=""><span class='state <%#(((long)Eval("userAccountControl")&HTTT.Utilities.Constants.ADS_UF_ACCOUNT_DISABLE)>0)?"unpublish":"public" %> publish'>
                                    </span></a>
                                </td>
                                <td class="center">
                                    <%#Eval("title") %>
                                </td>
                                <td class="center">
                                    <%#Eval("department") %>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                </tbody>
            </table>
            <div class="clr"></div>
        </div>
    </div>
</asp:Content>
